package com.itelite.domain.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 沈洋 邮箱:1845973183@qq.com
 * @create 2021/8/10-12:55
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Prize implements Serializable {

    private static final long serialVersionUID = -7971969363649511647L;
    private Integer prizeId;
    @NotBlank(message = "获奖名称不能为空")
    private String prizeName;
    @NotBlank(message = "获奖级别不能为空")
    private String level;
    @NotNull(message = "获奖日期不能为空")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date prizeDate;
    private Integer userId;
    @NotBlank(message = "项目名称不能为空")
    private String projectName;
    private String projectDetail;
    private String remark;
}
